/*
 * @Author: wzh
 * @Date: 2021-11-30 23:02:58
 * @LastEditTime: 2021-12-01 01:15:40
 * @LastEditors: wzh
 * @Description: 
 * @FilePath: \LoRa32OLED\src\main.cpp
 * 可以输入预定的版权声明、个性签名、空行等
 */

#include "WiFi.h"
#include "Arduino.h"
#include "stdio.h"
    
#include "oled.h"
#include "oledfont.h"
#include "WString.h"

#include "app_clock.h"
#include "NET_Ctrl.h"
#include "app_PCSttus.h"
  
#include <Wire.h>
#include <time.h>

#include "GUI.h"
#include "app_hoodle.h"



char msg[20];




const char* ssid     = "CXW";
const char* password = "CXWKJ3405";



void setup() {

    Serial.begin(115200);
    // GUI_Init();    
    // WiFi.mode(WIFI_STA);
    // WiFi.disconnect();
    // delay(100);    
    OLED_Init();

    // autoConfig(ssid,password);
    // App_Clock_Init();
}


void loop() {
    // clock_refresh();
    // OLED_Refresh();
    
    
    // OLED_Clear();
    // LineTo((rand() % 128 ),(rand() % 64));
    // LineTo((rand() % 128 ),(rand() % 64));
    // OLED_Refresh();

    OLED_Clear();
    app_hoodle_run();
    OLED_Refresh();
    

}